home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / tutor / dosguide.exe / HELPDOS.ZIP / MODE.HLP < prev    next >
Text File  |  1985-09-10  |  5KB  |  115 lines

  1. ------------------------  MODE - External DOS Command  -------------------------
  2.  
  3. MODE has four Options.  Each Option has its own format and parameters:
  4.  
  5.    1. Sets operation mode on a printer.
  6.    2. Sets operation mode on a color/graphics display.  Also switches between
  7.       display adapters.
  8.    3. Sets options for an asynchronous communications adapter.
  9.    4. Route parallel printer output to an asynchronous communications adapter.
  10.  
  11. NOTE:  In DOS Version 3, you may preface this command with the drive letter and
  12.    directory path, [d:][path], where the command file can be found.
  13.  
  14.  
  15.   --------------------- Set Operation Mode on a Printer ---------------------
  16.  
  17. FORMAT:   MODE LPT#:[n][,[m][,P]]
  18.  
  19. REMARKS:
  20.  
  21.    # - printer number (1,2, or 3).
  22.    n - characters per line (80 or 132).
  23.    m - vertical spacing, lines per inch (6 or 8).
  24.    P - continuous retry on time-out errors.
  25.  
  26. EXAMPLE: Set the operation mode for printer 1, to 132 characters per line and 8
  27.    lines per inch:
  28.  
  29.           MODE LPT1:132,8
  30.  
  31.  
  32.   -------------  Set Operation Mode on a Color/Graphics Display  -------------
  33.                     (also switches between display adapters)
  34.  
  35. FORMAT:   MODE n    or    MODE [n],m[,T]
  36.  
  37. REMARKS:
  38.  
  39.    n - color and/or width of screen.  The following are valid values for n:
  40.  
  41.           40   - sets color/graphics display width to 40 characters.
  42.           80   - sets color/graphics display width to 80 characters.
  43.           BW40 - activates the color/graphics display adapter and sets the
  44.                  display to Black and White with 40 characters per line.
  45.           BW80 - activates the color/graphics display adapter and sets the
  46.                  display to Black and White with 80 characters per line.
  47.           CO40 - activates the color/graphics display adapter, enables color,
  48.                  and sets the display width to 40 characters.
  49.           CO80 - activates the color/graphics display adapter, enables color,
  50.                  and sets the display width to 80 characters.
  51.           MONO - activates the monochrome display adapter.  The width is always
  52.                  80 characters.
  53.  
  54.    m - R or L; shifts display right or left.  40 column displays are shifted one
  55.        character, color/graphics displays are shifted two characters.
  56.  
  57.    T - requests a test pattern to align the display.  A (Y/N) prompt will ask
  58.        you if the screen is properly aligned.  If you enter N, the shift is
  59.        repeated and you are prompted again.  Enter Y and the command ends.
  60.  
  61. EXAMPLE:  Switch to the color/graphics display, enable color and set the width
  62.    to 80 characters:
  63.  
  64.           MODE CO80
  65.  
  66.  
  67.   --------- Set Options for an Asynchronous Communications Adapter ---------
  68.  
  69. FORMAT:   MODE COMn:baud[,parity[,databits[,stopbits[,P]]]]
  70.  
  71. REMARKS:
  72.  
  73.    n        -  asynchronous communications adapter number; 1 or 2.
  74.    baud     -  110, 150, 300, 600, 1200, 2400, 4800 or 9600.  Only the first
  75.                two digits are required.
  76.    parity   -  N (none), O (odd) or E (even).  If omitted, E is assumed.
  77.    databits -  7 or 8.  If omitted, 7 is assumed.
  78.    stopbits -  1 or 2.  If omitted and baud is 110, 2 is assumed.  If omitted
  79.                and baud is not 110, 1 is assumed.
  80.    P        -  indicates that the asynchronous communications adapter is being
  81.                used for a serial interface to a printer.  Time-out errors will
  82.                be continuously retried.  The retries can be broken with
  83.                Control-Break.  To turn off continuous retry on time-out errors,
  84.                reissue the MODE command without the P parameter.
  85.  
  86. EXAMPLE:  Set the communications protocol for COM1 to 2400 baud, even parity, 8
  87.    databits, 1 stopbit:
  88.  
  89.           MODE COM1:24,E,8,1
  90.  
  91.  
  92.   --- Route Parallel Printer Output to Asynchronous Communications Adapter ---
  93.  
  94. FORMAT:   MODE LPT#:=COMn
  95.  
  96. REMARKS:
  97.  
  98.    # - printer number; 1, 2 or 3.
  99.    n - asynchronous communications adapter; 1 or 2.
  100.  
  101.    Output for printer LPT# is redirected to the specified asynchronous
  102.    communications adapter.
  103.  
  104.    You must first initialize the asynchronous communications adapter using
  105.    Option 3 "Set Options for an Asynchronous Communications Adapter."  You
  106.    should also specify the P parameter in that initialization.
  107.  
  108.    To disable the redirection for the specified printer, use Option 1,
  109.    MODE LPT#:[n][,[m][,P]].
  110.  
  111. EXAMPLE:  Redirect the output of parallel printer 1 to asynchronous
  112.    communications adapter 2:
  113.  
  114.           MODE LPT1:=COM2
  115.